<div class="folder">
  <p>
    <b><%=h @quote.quote_number %> - <%=h @quote.customer.name %></b>
    <br/>
    <i><%=h @quote.description %></i>
  </p>
  <br/>
  <%if !@quote.price_per_hour.nil? %>Tuntihinta: <%=h @quote.price_per_hour %>
    <br/>
  <%end %>
  <%if !@quote.hours.nil? %>Tunteja: <%=h @quote.hours %>
    <br/>
  <%end %>
  <%if !@quote.total_price.nil? %>Kokonaishinta: <%=h @quote.total_price %>
    <br/>
  <%end %>
  <br/>
  <% if !@quote.documents.empty? %>
    Dokumentit:
    <p>
      <%@quote.documents.each do |document| %><%=link_to document.filename, {:controller => 'documents', :action => 'view', :id => document}, :popup => true, :html => {:class => 'file'} %>
        <br/>
      <%end %>
    </p>
  <% end %>
  <% if !@quote.resources.empty? %>
    Resurssit:
    <p>
      <%@quote.resources.each do |employee| %><%=h employee.full_name %>
        <br/>
      <%end %>
    </p>
  <% end %>

  <%= link_to image_tag('arrow_left.png', :border => 0), quotes_url %>
</div>